/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objects;

import java.io.Serializable;

/**
 *
 * @author tinvukhac
 */
public class UserInfo implements Serializable{
    private String userId;
    private String userAddress;
    private boolean available;
    private int port;

    public UserInfo(){}

    public UserInfo(String userId, String userAddress, boolean available,int port){
        this.userId = userId;
        this.userAddress = userAddress;
        this.available = available;
        this.port=port;
    }

    /**
     * @return the userId
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId the userId to set
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @return the userAddress
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * @param userAddress the userAddress to set
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * @return the available
     */
    public boolean isAvailable() {
        return available;
    }

    /**
     * @param available the available to set
     */
    public void setAvailable(boolean available) {
        this.available = available;
    }
    
    public int getPort(){
        return port;
    }
    
    public void setPort(int port){
        this.port=port;
    }
}
